package im.zego.zimexample.adapter.holder;


import android.content.Context;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import im.zego.zimexample.R;
import im.zego.zimexample.adapter.OnItemClickListener;


public class ChatLeftViewHolder extends RecyclerView.ViewHolder {
    private static final String TAG = "ChatAcceptViewHolder";
    private OnItemClickListener onItemClickListener;

    private RelativeLayout.LayoutParams layoutParams;
    private Context mContext;
    public TextView contentTextView;
    public TextView userIDTextView;
    public ChatLeftViewHolder(ViewGroup parent, OnItemClickListener onItemClickListener, Handler handler) {
        super(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_chat_left, parent, false));
        findViewByIds(itemView);
        this.mContext = parent.getContext();
        this.onItemClickListener = onItemClickListener;
    }

    private void findViewByIds(View itemView) {
        userIDTextView = itemView.findViewById(R.id.user_id);
        contentTextView = itemView.findViewById(R.id.content);
    }

}
